package com.hiultra.archive.task;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.hiultra.archive.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: ls
 * @CreateTime: 2024/09/02  13:48
 * @Description: TODO
 * @Version: 1.0
 */
@Component("businessReportTask")
public class BusinessReportTask {
    Log log = LogFactory.get();
    @Autowired
    private IArchiveStocktakingTaskService archiveStocktakingTaskService;
    @Autowired
    private IArchiveUploadTaskService archiveUploadTaskService;
    @Autowired
    IArchiveRoomAlarmService archiveRoomAlarmService;
    @Autowired
    private IArchiveStorageTaskService archiveStorageTaskService;
    @Autowired
    private IArchiveDesTaskService archiveDesTaskService;
    @Autowired
    private IArchiveBoxinnerMoveTaskService archiveBoxinnerMoveTaskService;
    @Autowired
    private IArchiveBoxMoveTaskService archiveBoxMoveTaskService;
    @Autowired
    private IRoomArchiveService roomArchiveService;
    @Autowired
    private IArchiveBoxStatusService archiveBoxStatusService;
    @Autowired
    private IArchiveRoomFaceRecordsService archiveRoomFaceRecordsService;
    @Autowired
    private IArchiveBoxIllegalRecordsService archiveBoxIllegalRecordsService;
    @Autowired
    private IArchiveBoxInoutRecordsService archiveBoxInoutRecordsService;

    /*档案盘点任务上送*/
    public void timingArchiveStocktakingTaskResultReport() {
        log.info("定时任务：【档案盘点任务】上送接口");
        archiveStocktakingTaskService.timingArchiveStocktakingTaskResultReport();
    }

    /*档案转存任务上送*/
    public void timingArchiveUploadTaskResultReport() {
        log.info("定时任务：【档案转存任务】上送接口");
        archiveUploadTaskService.timingArchiveUploadTaskResultReport();
    }
    /*上报档案室环境预警信息*/
    public void timingArchiveRoomAlarmResultReport() {
        log.info("定时任务：【上报档案室环境预警信息】上送接口");
        archiveRoomAlarmService.timingArchiveRoomAlarmResultReport();
    }
    /*档案入库任务上送*/
//    public void timingArchiveDesTaskResultReport() {
//        log.info("定时任务：【档案销毁任务】上送接口");
//        archiveDesTaskService.timingArchiveDesTaskResultReport();
//    }

    /*档案室档案盒状态上报*/
    public void timingArchiveBoxStatusResultReport() {
        log.info("定时任务：【档案室档案盒状态】上送接口");
        archiveBoxStatusService.timingArchiveBoxStatusResultReport();
    }

    /*档案室刷脸记录上报*/
    public void timingArchiveRoomFaceRecordsResultReport() {
        log.info("定时任务：【档案室刷脸记录】上送接口");
        archiveRoomFaceRecordsService.timingArchiveRoomFaceRecordsResultReport();
    }

    /*非法携带档案记录上报*/
    public void timingArchiveBoxIllegalRecordsResultReport() {
        log.info("定时任务：【非法携带档案记录】上送接口");
        archiveBoxIllegalRecordsService.timingArchiveBoxIllegalRecordsResultReport();
    }

    /*档案室档案盒进出记录上报*/
    public void timingArchiveBoxInoutRecordsResultReport() {
        log.info("定时任务：【档案室档案盒进出记录上报】上送接口");
        archiveBoxInoutRecordsService.timingArchiveBoxInoutRecordsResultReport();
    }
}
